﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExampleApp
{
    public interface IProgram
    {
        Person GetFred();
        void Run();
    }

    public class Program : IProgram
    {
        static void Main(string[] args)
        {
            IProgram program = new Program();
            program.Run();
        }

        public void Run()
        {
            Person myPerson = GetFred();
            Console.WriteLine("Our buddy {0} is number {1}.", myPerson.Name, myPerson.Number);
            Console.Read();
        }

        public Person GetFred()
        {
            return new Person() { Name = "Fred", IsReal = false, Number = 23 };
        }
    }
}
